#include<stdio.h>
#include<ctype.h>
#include<string.h>

int main()
{
    int alpha=0;
    char str[100];
    fgets(str,100,stdin);
    str[strcspn(str,"\n")]='\0'; // remove the newline character at the end of the string
    for(int i=0;i<strlen(str);i++)
    {
        if(isalpha(str[i])&&isupper(str[i])&&str[i]!='A'&&str[i]!='E'&&str[i]!='I'&&str[i]!='O'&&str[i]!='U')
        {
            alpha++;
        }
    }
    printf("%d",alpha);
    return 0;
}